

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" href="/img/favicon.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="John Doe">
  <meta name="keywords" content="">
  
    <meta name="description" content="Deployer 简介Deployer是一个用PHP编写的 cli 部署工具，用于部署任何 PHP 应用程序，包括 Laravel、Symfony、Zend Framework 等框架。 特点 简单的设置过程和最小的学习曲线 可以使用在大多数框架上 没有扩展的并行执行 出现错误，可以回滚到之前版本 没有使用什么代理，仅仅是 SSH 可以实现零停机部署  开始安装123curl -LO https">
<meta property="og:type" content="article">
<meta property="og:title" content="Deployer部署项目">
<meta property="og:url" content="http://example.com/2020/04/02/Deployer%E9%83%A8%E7%BD%B2%E9%A1%B9%E7%9B%AE/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="Deployer 简介Deployer是一个用PHP编写的 cli 部署工具，用于部署任何 PHP 应用程序，包括 Laravel、Symfony、Zend Framework 等框架。 特点 简单的设置过程和最小的学习曲线 可以使用在大多数框架上 没有扩展的并行执行 出现错误，可以回滚到之前版本 没有使用什么代理，仅仅是 SSH 可以实现零停机部署  开始安装123curl -LO https">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://example.com/images/php/deployer.png">
<meta property="article:published_time" content="2020-04-02T08:11:51.000Z">
<meta property="article:modified_time" content="2020-05-25T18:39:22.000Z">
<meta property="article:author" content="John Doe">
<meta property="article:tag" content="Deployer">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="http://example.com/images/php/deployer.png">
  
  
  <title>Deployer部署项目 - Hexo</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4/github-markdown.min.css" />
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/hint.css@2/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10/styles/github-gist.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.css" />
  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"example.com","root":"/","version":"1.8.13","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 6.0.0"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>LZDF</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="Deployer部署项目">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2020-04-02 16:11" pubdate>
        2020年4月2日 下午
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      2.9k 字
    </span>
  

  
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      25 分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">Deployer部署项目</h1>
            
            <div class="markdown-body">
              <p><img src="/images/php/deployer.png" srcset="/img/loading.gif" lazyload></p>
<h1 id="Deployer-简介"><a href="#Deployer-简介" class="headerlink" title="Deployer 简介"></a>Deployer 简介</h1><p>Deployer是一个用PHP编写的 <code>cli</code> 部署工具，用于部署任何 <code>PHP</code> 应用程序，包括 <code>Laravel</code>、<code>Symfony</code>、<code>Zend Framework</code> 等框架。</p>
<h2 id="特点"><a href="#特点" class="headerlink" title="特点"></a>特点</h2><ul>
<li>简单的设置过程和最小的学习曲线</li>
<li>可以使用在大多数框架上</li>
<li>没有扩展的并行执行</li>
<li>出现错误，可以回滚到之前版本</li>
<li>没有使用什么代理，仅仅是 <code>SSH</code></li>
<li>可以实现零停机部署</li>
</ul>
<h1 id="开始安装"><a href="#开始安装" class="headerlink" title="开始安装"></a>开始安装</h1><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs bash">curl -LO https://deployer.org/deployer.phar<br>mv deployer.phar /usr/<span class="hljs-built_in">local</span>/bin/dep<br>chmod +x /usr/<span class="hljs-built_in">local</span>/bin/dep<br></code></pre></td></tr></table></figure>
<p>测试 <code>Deployer</code> 是否安装成功：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">$ dep --version<br>Deployer 6.7.3<br></code></pre></td></tr></table></figure>
<h2 id="开始使用"><a href="#开始使用" class="headerlink" title="开始使用"></a>开始使用</h2><p>安装完后，你可以通过 <code>dep</code> 命令在你的项目目录下运行以下命令：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br></pre></td><td class="code"><pre><code class="hljs bash">$ dep init<br><span class="hljs-comment"># 运行此命令后会出现下图的选项</span><br>                                            <br>  Welcome to the Deployer config generator  <br>                                            <br><br><br> This utility will walk you through creating a deploy.php file.<br> It only covers the most common items, and tries to guess sensible defaults.<br> <br> Press ^C at any time to quit.<br><br> Please select your project <span class="hljs-built_in">type</span> [Common]:<br>  [0 ] Common<br>  [1 ] Laravel<br>  [2 ] Symfony<br>  [3 ] Yii<br>  [4 ] Yii2 Basic App<br>  [5 ] Yii2 Advanced App<br>  [6 ] Zend Framework<br>  [7 ] CakePHP<br>  [8 ] CodeIgniter<br>  [9 ] Drupal<br>  [10] TYPO3<br> &gt; <br></code></pre></td></tr></table></figure>
<p>依照提示生成 <code>deployer.php</code> 文件。文件中包含了基本的部署配置和任务，你可以根据注释在适当的地方添加配置以及任务。</p>
<h2 id="简单测试"><a href="#简单测试" class="headerlink" title="简单测试"></a>简单测试</h2><p>添加一个测试项</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs bash">task(<span class="hljs-string">&#x27;test&#x27;</span>, <span class="hljs-function"><span class="hljs-title">function</span></span> () &#123;<br>    writeln(<span class="hljs-string">&#x27;Hello world&#x27;</span>);<br>&#125;);<br></code></pre></td></tr></table></figure>
<p>执行查看结果：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs bash">$ dep <span class="hljs-built_in">test</span><br><span class="hljs-comment"># output:</span><br>➤ Executing task <span class="hljs-built_in">test</span><br>Hello world<br>• <span class="hljs-keyword">done</span> on [project.com]<br>✔ Ok [0ms]<br></code></pre></td></tr></table></figure>

<h1 id="项目部署"><a href="#项目部署" class="headerlink" title="项目部署"></a>项目部署</h1><p>直接上完整的部署文件 <code>deployer.php</code>,这里以 <code>Laravel</code> 框架为例：</p>
<figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br></pre></td><td class="code"><pre><code class="hljs php"><span class="hljs-meta">&lt;?php</span><br><span class="hljs-keyword">namespace</span> <span class="hljs-title">Deployer</span>;<br><br><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;recipe/laravel.php&#x27;</span>;<br><br><span class="hljs-comment">// 项目名称</span><br>set(<span class="hljs-string">&#x27;application&#x27;</span>, <span class="hljs-string">&#x27;my_project&#x27;</span>);<br><br><span class="hljs-comment">// 代码仓库</span><br>set(<span class="hljs-string">&#x27;repository&#x27;</span>, <span class="hljs-string">&#x27;git@gitserver.com:_inc/bbs.git&#x27;</span>);<br><br><span class="hljs-comment">// 允许 git 执行 clone 操作，默认为 false</span><br>set(<span class="hljs-string">&#x27;git_tty&#x27;</span>, <span class="hljs-literal">true</span>); <br><br><span class="hljs-comment">// 保存发行版本数</span><br>set(<span class="hljs-string">&#x27;keep_releases&#x27;</span>, <span class="hljs-number">5</span>);<br><br><span class="hljs-comment">// 部署时不同版本共享的文件和文件夹</span><br>add(<span class="hljs-string">&#x27;shared_files&#x27;</span>, [<span class="hljs-string">&#x27;.env&#x27;</span>]);<br>add(<span class="hljs-string">&#x27;shared_dirs&#x27;</span>, [<br>    <span class="hljs-string">&#x27;public/static&#x27;</span>,<br>    <span class="hljs-string">&#x27;storage&#x27;</span>,<br>]);<br><br><span class="hljs-comment">// 允许服务器写入的文件夹</span><br>add(<span class="hljs-string">&#x27;writable_dirs&#x27;</span>, []);<br><br><br><span class="hljs-comment">// 主机信息</span><br>host(<span class="hljs-string">&#x27;192.168.15.75&#x27;</span>)<br>    -&gt;user(<span class="hljs-string">&#x27;deployer&#x27;</span>) <span class="hljs-comment">// 这里的 deployer 用户名要求要是服务器上存在的账户名，已实现 ssh 登陆</span><br>      <span class="hljs-comment">// 指定私钥的位置，前提是公钥已经发送到服务器端</span><br>    -&gt;identityFile(<span class="hljs-string">&#x27;~/.ssh/id_rsa&#x27;</span>)<br>    -&gt;set(<span class="hljs-string">&#x27;deploy_path&#x27;</span>, <span class="hljs-string">&#x27;/www/bbs.gitserver.com&#x27;</span>);    <span class="hljs-comment"># deploy_path：代码发布到服务器上的位置</span><br>    <br><span class="hljs-comment">// Tasks</span><br>task(<span class="hljs-string">&#x27;build&#x27;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>&#123;<br>    run(<span class="hljs-string">&#x27;cd &#123;&#123;release_path&#125;&#125; &amp;&amp; build&#x27;</span>);<br>&#125;);<br><br>task(<span class="hljs-string">&#x27;success&#x27;</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>&#123;<br>    writeln(<span class="hljs-string">&#x27;Deploy success!&#x27;</span>);<br>&#125;);<br><br><span class="hljs-comment">// 当你想在 部署 前/后 执行一些其他的 task 操作，可以通过配置 before()、after() 来实现</span><br>before(<span class="hljs-string">&#x27;deploy:symlink&#x27;</span>, <span class="hljs-string">&#x27;artisan:migrate&#x27;</span>);<br>after(<span class="hljs-string">&#x27;deploy:failed&#x27;</span>, <span class="hljs-string">&#x27;deploy:unlock&#x27;</span>);<br>after(<span class="hljs-string">&#x27;deploy:update_code&#x27;</span>, <span class="hljs-string">&#x27;success&#x27;</span>); <span class="hljs-comment"># 这里的 success 为 上面 task 定义的内容</span><br></code></pre></td></tr></table></figure>
<p><code>Deployer</code> 将会在服务器上生成一下三个目录：</p>
<ul>
<li><code>releases</code> 保留部署的历史版本文件夹,</li>
<li><code>shared</code> 共享文件夹，它的作用就是存储我们项目中版本间共享的文件，比如 <code>Laravel</code> 中的配置文件 <code>.env</code></li>
<li><code>current</code> 指向当前发型版本的软连接，比如指向 <code>releases</code> 下面的 <code>1</code> 号文件夹</li>
</ul>
<h2 id="dep-rollback"><a href="#dep-rollback" class="headerlink" title="dep rollback"></a>dep rollback</h2><p>如果新版本或者当前部署进程有什么错误的话，可以通过执行 <code>dep rollback</code> 会推到前一个版本</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">dep rollback<br>✔ Executing task rollback <span class="hljs-comment"># 执行成功之后查看 current 对应的软链接会发现，已经指向上一个版本了！</span><br></code></pre></td></tr></table></figure>

<h2 id="branch"><a href="#branch" class="headerlink" title="branch"></a>branch</h2><p>分支部署：<br>如果当前需要部署一个特别的 branch、tag、reversion，只需要在后面添加对应的选项就可以。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs bash">dep deploy --branch=task1111<br>dep deploy --tag=<span class="hljs-string">&quot;v0.1&quot;</span><br>dep deploy --revision=<span class="hljs-string">&quot;5daefb59edbaa75&quot;</span><br></code></pre></td></tr></table></figure>

<p>更多的配置项，请查看官方文档：<a target="_blank" rel="noopener" href="https://deployer.org/docs/getting-started.html">https://deployer.org/docs/getting-started.html</a></p>
<p>参考文档： <a target="_blank" rel="noopener" href="https://learnku.com/articles/13242/another-introduction-to-the-use-of-deployer">https://learnku.com/articles/13242/another-introduction-to-the-use-of-deployer</a></p>
<p><strong>升级版本</strong>参考<a href="/2020/04/03/%E9%80%9A%E8%BF%87sh%E8%84%9A%E6%9C%AC%E6%89%A7%E8%A1%8CDeployer%E4%BB%A3%E7%A0%81%E9%83%A8%E7%BD%B2/">通过sh脚本执行Deployer代码部署</a></p>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/categories/Deployer/">Deployer</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/Deployer/">Deployer</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2020/04/03/%E9%80%9A%E8%BF%87sh%E8%84%9A%E6%9C%AC%E6%89%A7%E8%A1%8CDeployer%E4%BB%A3%E7%A0%81%E9%83%A8%E7%BD%B2/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">通过sh脚本执行Deployer代码部署</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2020/04/01/Docker%E5%AE%89%E8%A3%85gitlab/">
                        <span class="hidden-mobile">Docker安装gitlab</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
  </div>
  

  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/js/local-search.js" ></script>



  
    <script  src="/js/img-lazyload.js" ></script>
  



  



  
    <script  src="https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4/anchor.min.js" ></script>
  
  
    <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js" ></script>
  






  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
        typing(title);
      
    })(window, document);
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>


</body>
</html>
